<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大健康咨询</title>
</head>
<body>
    <h1>健康咨询小助手</h1>

    <form action="/ask" method="post">
        <label for="user_input">输入问题：</label>
        <input type="text" id="user_input" name="user_input" required>
        <button type="submit">提交</button>
    </form>

    {% if user_input %}
        <h2>用户输入：</h2>
        <p>{{ user_input }}</p>

        {% if answer %}
            <h2>模型回答：</h2>
            <p>{{ answer }}</p>
        {% endif %}
    {% endif %}
</body>
</html>
